/*
 * Copyright (c) 2025 EasyAdmin
 * All rights reserved.
 *
 * This file is part of the [EasAdmin] project.
 * Unauthorized copying of this file, via any medium, is strictly prohibited.
 * Proprietary and confidential.
 *
 * Author: EasyAdmin ( 1073602@qq.com )
 * Website: https://www.xhxiao.com
 */
package com.easy.module.system.service;

import com.easy.framework.database.service.IService;
import com.easy.module.system.entity.SysAppMenu;
import com.easy.module.system.entity.SysAppMenuAuth;
import com.easy.module.system.query.SysAppMenuQuery;

import java.util.List;

/**
 * 应用菜单 Service接口
 *
 * @author EasyAdmin ( 1073602@qq.com )
 * @date 2025-08-20
 */
public interface ISysAppMenuService extends IService<SysAppMenu, SysAppMenuQuery>
{

    List<SysAppMenu> menuTree(Long orgId, List<Long> roleIdList, Long userId);

    /**
     * 根据父节点的ID获取所有子节点
     */
    List<SysAppMenu> childPerms(List<SysAppMenu> list, Long parentId);

}